package com.rt.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rt.common.annotation.Excel;
import com.rt.common.core.domain.BaseEntity;

/**
 * 试题日志记录对象 rt_question_history
 * 
 * @author Yg
 * @date 2022-04-13
 */
public class RtQuestionHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志主键 */
    private Long logId;

    /** 操作类型（0其它 1新增 2修改 3删除） */
    @Excel(name = "操作类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除")
    private String operType;

    /** 试题id */
    private String questionId;

    /** 操作内容 */
    @Excel(name = "操作内容")
    private String operContent;

    /** 变更前试题内容 */
    @Excel(name = "变更前试题内容")
    private String questionBefore;

    /** 变更后试题内容 */
    @Excel(name = "变更后试题内容")
    private String questionAfter;

    /** 操作人员 */
    @Excel(name = "操作人员")
    private String operName;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date operTime;

    public String getQuestionId() {
        return questionId;
    }

    public void setQuestionId(String questionId) {
        this.questionId = questionId;
    }

    public void setLogId(Long logId)
    {
        this.logId = logId;
    }

    public Long getLogId() 
    {
        return logId;
    }
    public void setOperType(String operType)
    {
        this.operType = operType;
    }

    public String getOperType()
    {
        return operType;
    }
    public void setOperContent(String operContent) 
    {
        this.operContent = operContent;
    }

    public String getOperContent() 
    {
        return operContent;
    }
    public void setQuestionBefore(String questionBefore) 
    {
        this.questionBefore = questionBefore;
    }

    public String getQuestionBefore() 
    {
        return questionBefore;
    }
    public void setQuestionAfter(String questionAfter) 
    {
        this.questionAfter = questionAfter;
    }

    public String getQuestionAfter() 
    {
        return questionAfter;
    }
    public void setOperName(String operName) 
    {
        this.operName = operName;
    }

    public String getOperName() 
    {
        return operName;
    }
    public void setOperTime(Date operTime) 
    {
        this.operTime = operTime;
    }

    public Date getOperTime() 
    {
        return operTime;
    }

    @Override
    public String toString() {
        return "RtQuestionHistory{" +
                "logId=" + logId +
                ", operType=" + operType +
                ", operContent='" + operContent + '\'' +
                ", questionBefore='" + questionBefore + '\'' +
                ", questionAfter='" + questionAfter + '\'' +
                ", operName='" + operName + '\'' +
                ", operTime=" + operTime +
                '}';
    }
}
